﻿using BruteForce.Animation;
using BruteForce.GameObjects;
using BruteForce.Screens.PlayingScreen.Map;
using BruteForce.Screens.PlayingScreen.Panels;
using Microsoft.Xna.Framework;

namespace BruteForce.Characters
{
    internal class Defender : Character
    {
        public Defender(Resources initialResource, bool human, GamePanel gamePanel, Vector2 initialPosition, MapCell mapCell, PlayerType player)
            : base(gamePanel, initialResource, initialPosition,mapCell, player)
        {
            IsHuman = human;
            AnimationTransition = new LinearFrameAnimationTransition(0,
                                                                     VisualMap[
                                                                         new Key((human ? "Humans" : "Monsters"),
                                                                                 "Defender", "walking", "se")], 0.025);
            Type = CharacterType.Defender;
        }
    }
}